package com.cy.pj.sys.dao.impl;

import com.cy.pj.sys.dao.SysNoticeDao;
import com.cy.pj.sys.pojo.SysNotice;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

//@Repository
public class SysNoticeDaoImpl implements SysNoticeDao {

    @Autowired
    private SqlSession sqlSession;

    @Override
    public List<SysNotice> selectNotice(SysNotice notice) {

        String statement = "com.cy.pj.sys.dao.SysNoticeDao.selectNotice";
        List<SysNotice> list =sqlSession.selectList(statement,notice);
        return list;
    }

    @Override
    public int deleteById(Long... id) {
        return 0;
    }

    @Override
    public SysNotice selectById(Long id) {
        return null;
    }

    @Override
    public int insertNotice(SysNotice notice) {
        return 0;
    }

    @Override
    public int updateNotice(SysNotice notice) {
        return 0;
    }
}



